<template>
  <div class="h_body">
    <span class="h_b_text">陵水县土地资源管理平台</span>
    <Timer />
  </div>
</template>

<script lang="ts" setup>
import Timer from "./Timer.vue";
</script>

<style lang="scss" scoped>
.h_body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("@/assets/img/h_body_bg.png");
  background-color: rgba(0, 0, 0, 0.2);
  background-repeat: no-repeat;
  background-size: 100% 111%;
  z-index: 10;
}

.h_b_text {
  font-family: DingTalk-JinBuTi;
  font-size: 25px;
  color: #dbfaff;
  letter-spacing: 6px;
  text-align: center;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.5), 0 0 6px rgba(255, 255, 255, 0.3);
}

.left_meum {
  display: flex;
  flex-direction: row;
  height: 40px;
  position: absolute;
  top: 30px;
  left: 16px;
  gap: -10px;

  &_item {
    cursor: pointer;
    width: 188px;
    background-image: url("@/assets/img/hnls/left_meum.png");
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: DingTalk-JinBuTi;
    font-size: 24px;
    color: #dbfaff;
    letter-spacing: 0;
    text-align: center;
    line-height: 31.92px;
    font-weight: 400;
    margin-right: -27px;
    position: relative;
  }

  &_item_active {
    background-image: url("@/assets/img/hnls/left_meum_active.png");
    color: #f78f2a !important;
  }
}

.left_meum_item_line {
  width: 144px;
  height: 4px;
  background-color: #00d8f4;
  opacity: 0.85;
  position: absolute;
  top: 50px;
  left: 40px;
}

.search_container {
  position: absolute;
  top: 26px;
  right: 10vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 45px;

  .search_item {
    margin-right: -24px;
    height: 100%;
    width: 310px;
    background-image: url("@/assets/img/hnls/search_bg.png");
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;

    cursor: pointer;
    // width: 188px;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: DingTalk-JinBuTi;
    font-size: 24px;
    color: #dbfaff;
    letter-spacing: 0;
    text-align: center;
    line-height: 31.92px;
    font-weight: 400;
    margin-right: -27px;
    position: relative;
  }

  .search_select {
    height: 100%;
    width: 173px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("@/assets/img/hnls/left_meum.png");
    background-size: 100% 100%;
  }
}

.no_data {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;

  span {
    font-size: 14px;
    color: #f78f2a;
  }
}

.search_result {
  z-index: 30;
  position: absolute;
  top: 50px;
  left: 0;
  min-height: 100px;
  max-height: 300px;
  width: 480px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  background: rgba(58, 58, 58, 0.45);
  border: 1px solid rgba(108, 128, 151, 0.5);
  backdrop-filter: blur(10px);

  /* 关键：背景模糊 */
  &_item {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 2px 0px;
    padding: 4px 10px;

    span {
      font-size: 16px;
      color: #ffffff;
      line-height: 20px;
      font-weight: 400;
    }
  }

  &_item:hover {
    background-image: linear-gradient(
      -86deg,
      rgba(51, 29, 9, 0.36) 0%,
      #663b11 100%
    );

    span {
      color: #f78f2a;
    }
  }
}
</style>

<style lang="scss">
.search_item_input {
  width: 66% !important;
  --el-fill-color-blank: rgba(255, 255, 255, 0.05);
  --el-border-color: #138091;
}
</style>
